package com.muyu.danmo.domain;


import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 培训班商品规格对象 danmo_training_shopping_products_specifications
 * 
 * @author kunzong
 * @date 2024-11-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoTrainingShoppingPrSp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 培训班商品规格ID */
    private Long id;

    /** 培训班商品ID */
    @Excel(name = "培训班商品ID")
    private Long productId;

    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("picture", getPicture())
            .append("title", getTitle())
            .append("price", getPrice())
            .append("stock", getStock())
            .toString();
    }
}
